%h1 
	Using also_in
%p
	The variable's value must match ANY of the values. In this example, any blogpost having tag1 = a or b will be selected. 
	Note
	the difference here is if any_in is chained with values for the same field, it performs a union of the values where any_in perform an 		intersection. 

	def alsoin
		BlogPost.also_in(tag1: [ "a", "b" ])
	end


- @blog_posts.each do |blog_post|
	%p
		%b= link_to blog_post.title, blog_post 
	%p created at
	%p= blog_post.time
	%p= blog_post.content


	%p{style: "float: right;"}
		= link_to "Delete", blog_post, method: :delete, confirm: "Are you sure you want to delete this post?"

		= link_to "modify", blog_post, method: :put
	%hr{style: "clear: both;"}

	%br 
= link_to 'Back', blog_posts_path
